<?php
declare(strict_types=1);

namespace Jxzsxsp\WechatRobot\Image;

use Jxzsxsp\WechatRobot\Message;

class ImageMessage extends Message
{
    const MSG_TYPE = 'image';
    public $base64 = '';
    public $md5 = '';

    protected function getMessage(): array
    {
        return [
            'msgtype' => self::MSG_TYPE,
            self::MSG_TYPE => [
                'base64' => $this->base64,
                'md5' => $this->md5,
            ]
        ];
    }

}